<!--
 * @Author: Evan Liu
 * @Date: 2022-03-22 14:13:44
 * @LastEditTime: 2022-07-28 17:21:26
 * @LastEditors: yanMeng
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \ias_ui\src\views\coi\commodityM\goodsLibrary.vue
-->
<template>
  <SwitchingTable v-model="value" :component-list="componentList">
    <component :is="value" :menu-name="value" />
  </SwitchingTable>
</template>

<script>
import SKU from './commodity-library'
import SPU from '@/views/coi/spuChannelInventory/index/serialInventory'
import SwitchingTable from '@/views/coi/components/SwitchingTable'

export default {
  name: 'GoodsLibrary',
  components: {
    SKU,
    SPU,
    SwitchingTable
  },
  data() {
    return {
      value: 'SKU',
      componentList: [
        {
          name: 'SKU',
          id: 'SKU',
          hidden: window.appConfig.hiddenNewProducts
        }
        // {
        //   name: 'SPU',
        //   id: 'SPU',
        //   // hidden: window.appConfig.hiddenNewProducts
        //   hidden: true
        // }
      ]
    }
  }
}
</script>
